﻿namespace AspNetCore.Host.Routing
{
    public class EndpointDataSource
    {
        private readonly List<Endpoint> _endpoints = new List<Endpoint>();

        public IReadOnlyList<Endpoint> Endpoints =>_endpoints;

        public void SetEndpoint(Endpoint endpoint)
        {
            _endpoints.Add(endpoint);
        }
    }
}
